﻿using Hotel.DAL;

namespace Hotel.BLL
{
    public class AdminBLL
    {
        public AdminBLL(AdminDAL adminDAL)
        {
            AdminDAL = adminDAL;
        }
        public AdminDAL AdminDAL { get; }
        /// <summary>
        /// 管理员登陆
        /// </summary>
        /// <param name="useName">管理员账号</param>
        /// <param name="usePwd">管理员密码</param>
        /// <returns></returns>
        public dynamic Login(string useName, string usePwd)
        {
            try
            {
                //判断用户名是否存在
               return AdminDAL.Login(useName, usePwd);
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}